import request from '@/utils/request'
import qs from 'qs'
// 查询计算公式列表
export const getdatalist = params => request.get('/core/iot/config/formula/list', { params })
// 查询计算公式测点类型下拉选择框数据
export const getxialalist = () => request.get('/core//iot/config/formula/item/combo-items')
// 创建计算公式
export const postgongsiapi = data => request.post('/core/iot/config/formula', qs.stringify(data))
// 删除计算公式
export const deletegongsiapi = data => request.post('/core/iot/config/formula/delete', qs.stringify(data))
// 查询计算公式
export const getchagongsiapi = params => request.get('/core/iot/config/formula', { params })
// 修改计算公式
export const putjisuangongapi=data=>request.post('/core/iot/config/formula/put', qs.stringify(data))